package top.ieei.demo.tftp;

/**
 * TFTP写文件请求，上传文件请求<br>
 * @author xiecongshu
 */
public class WriteRequest extends TftpRequest
{

    /**
     * 写请求
     */
    public static final int OPCODE = 2;

   /**
    * 
    * 构造函数<br>
    * @throws TftpException
    */
    public WriteRequest() throws TftpException
    {
        super();
    }

    /**
     * 
     * 构造函数<br>
     * @param tftpBytes
     * @throws TftpException
     */
    public WriteRequest(byte[] tftpBytes) throws TftpException
    {
        super(tftpBytes);
    }

    /**
     * 
     * 实现方法<br>
     * @see com.forrest.tse.examples.tftp.TftpPacket#getOpCode()
     * @return
     */
    public int getOpCode()
    {
        return OPCODE;
    }
}
